<script setup lang="ts">
import { reactive, ref, onMounted } from "vue";
import { showToast } from "vant";
const active = ref(0);
const onChange = (index) => showToast(`标签名 ${index + 1}`);
</script>

<template>
  <view>
    <van-sidebar style="width: 180rpx" v-model="active" @change="onChange">
      <van-sidebar-item title="标签名 1" />
      <van-sidebar-item title="标签名 2" />
      <van-sidebar-item title="标签名 3" />
    </van-sidebar>
  </view>
</template>
